package com.woniuxy.demo.contorller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 佘赛飞
 * @create 2021 -10 -07 10:35 AM
 */
//如果当前处理器的方法都是响应JSON,相当于每个方法上都有@ResponseBody
@RestController
//@Controller
public class Mycontroller {
    //@ResponseBody
    @RequestMapping("/test")
    public String test(){
        return "test";
    }

    @RequestMapping("/my.do")
    public String my(){
        return "my";
    }
}
